namespace :db do
desc "Printes the migrated version"
task :schema_migrations => :environment do
 puts ActiveRecord::Base.connection.select_values(
  'select version from schema_migrations order by version'
 )
end
end

